package com.example.base.app;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

@Slf4j
public class AppHandlerMethodInterceptor implements MethodInterceptor {

    private String appName;

    private Class<?> appClass;


    @Override
    public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
        return methodProxy.invokeSuper(o, objects);
    }

    public AppHandlerMethodInterceptor(String appName,Class<?> appClass){
        this.appName=appName;
        this.appClass=appClass;
    }

}
